date=`date +%Y-%m-%d.%Hh_%Mm`
versionNumber="v0.0.1"
packageVersion="com/dm/cloud/file/equip-file-biz:${versionNumber}.${date}"
docker build -t ${packageVersion} .
sed -i /EQUIP_FILE_VERSION/d ../.env
echo EQUIP_FILE_VERSION="${versionNumber}.${date}" >> ../.env
cd ../
docker-compose  stop equip-file-server
docker-compose  rm -f  equip-file-server
docker-compose  up -d  equip-file-server